package com.example.administrator.maizuofilm;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.example.administrator.maizuofilm.activitymain.MainActivity;

/**
 * Created by Administrator on 2016/7/11.
 */
public class WelcomeActivity extends BaseActivity {
    private Handler handler = new Handler();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(getApplicationContext(), MainActivity.class);
                startActivity(intent);
                finish();
            }
        }, 3000);
    }
}
